package hushi.controller;

import hushi.entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

/**
 * RequestPqram(value = "xxx",required = fasle/ture,defaultValue = "自己写的默认值")【数据类型】 名称
 * 说明：指定请求参数的名称
 */

@Controller
@RequestMapping("user")
public class PojoTest {
    @RequestMapping("add")
    public ModelAndView doAdd(User user){
        System.out.println(user);
        return new ModelAndView("/useradd.jsp");
    }
}
